package com.kaifamiao.jdbc.data.entity;

import java.time.LocalDate;

public class Lion {

    // 对象标识符字段 ( object identifier field )
    private Integer lionId;
    // 保存狮子名称的字段 ( field )
    private String name;
    // 保存狮子出生日期的字段 ( field )
    private LocalDate birthdate;
    // 保存狮子家乡的字段 ( field )
    private String hometown;

    // getId() ==> 去除get和参数部分 ==> Id ==> 首字母变小写 ==> id
    public Integer getId() {
        return lionId;
    }

    // setId(Integer id) ==> 去除set和参数部分 ==> Id ==> 首字母变小写 ==> id
    public void setId(Integer id) {
        this.lionId = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(LocalDate birthdate) {
        this.birthdate = birthdate;
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = hometown;
    }
}
